<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('职业类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
                <option value="0">根目录</option>
                {foreach name="parentList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('职业题库')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Display_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-display_switch" name="row[display_switch]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-display_switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" min="0" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">会员价格:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist">
                <dd>
                    <ins>类型</ins>
                    <ins>原价</ins>
                    <ins>现价</ins>
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[vip][m][key]" class="form-control" value="月度" placeholder="" size="10" disabled>
                    <input type="number" name="row[vip][m][original_price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                    <input type="number" name="row[vip][m][price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[vip][q][key]" class="form-control" value="季度" placeholder="" size="10" disabled>
                    <input type="number" name="row[vip][q][original_price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                    <input type="number" name="row[vip][q][price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[vip][y][key]" class="form-control" value="年度" placeholder="" size="10" disabled>
                    <input type="number" name="row[vip][y][original_price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                    <input type="number" name="row[vip][y][price]" class="form-control" value="0" placeholder="" style="width: 100px;">
                </dd>
            </dl>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">模拟考数量分值:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist">
                <dd>
                    <ins>类型</ins>
                    <ins>数量</ins>
                    <ins>分值</ins>
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[exam][dan][key]" class="form-control" value="单选题" placeholder="" size="10" disabled>
                    <input type="number" name="row[exam][dan][num]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="number" name="row[exam][dan][score]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="hidden" name="row[exam][dan][id]" class="form-control" value="1" placeholder="" style="width: 100px;">
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[exam][duo][key]" class="form-control" value="多选题" placeholder="" size="10" disabled>
                    <input type="number" name="row[exam][duo][num]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="number" name="row[exam][duo][score]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="hidden" name="row[exam][duo][id]" class="form-control" value="2" placeholder="" style="width: 100px;">
                </dd>
                <dd class="form-inline">
                    <input type="text" name="row[exam][pan][key]" class="form-control" value="判断题" placeholder="" size="10" disabled>
                    <input type="number" name="row[exam][pan][num]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="number" name="row[exam][pan][score]" class="form-control" value="0" min="0" step="1" placeholder="" style="width: 100px;">
                    <input type="hidden" name="row[exam][pan][id]" class="form-control" value="3" placeholder="" style="width: 100px;">
                </dd>
            </dl>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
